#include <iostream>

using namespace std;

int main()
{
    int var = 20;
    int *ip;
    int **ipp;

    ip = &var;
    ipp = &ip;

    cout << "Value of var =" << var << endl;
    cout << "Address of var =" << ip << endl;

    cout << "Value of *ip =" << *ip << endl;
    cout << "Address of *ip =" << ipp << endl;

    cout << "Value of **ip =" << **ipp << endl;
    cout << "Address of *ipp =" << &ipp << endl;

    return 0;
}
